package com.chaopei.zuul_server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

import java.util.logging.Logger;

@SpringBootApplication
//打开客户端服务
@EnableEurekaClient
//打开网关代理服务
@EnableZuulProxy
public class ZuulServerApplication {
   static Logger l = Logger.getLogger("zuul");
    public static void main(String[] args) {
        SpringApplication.run(ZuulServerApplication.class, args);
        l.info("zuul已启动!");
    }

}
